<!DOCTYPE html>
<html>
<head>
    <title>方正抽卡下载器</title>
    <style>
        body {
            background: url('https://upload-bbs.miyoushe.com/upload/2024/03/14/357876319/0624fb0ce06f775163fb9622203f61a9_7300338879708067848.jpeg') no-repeat center center fixed;
            background-size: cover;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            font-family: Arial, sans-serif;
        }
        .login-box {
            background: rgba(255, 255, 255, 0.9);
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            width: 300px;
        }
        .form-group {
            margin-bottom: 1rem;
        }
        label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
        }
        input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        button {
            background: linear-gradient(135deg, #2196F3, #1976D2);
            color: white;
            padding: 10px;
            border: none;
            border-radius: 4px;
            width: 100%;
            cursor: pointer;
            transition: opacity 0.3s;
        }
        button:hover {
            opacity: 0.9;
        }
        #message {
            margin-top: 1rem;
            text-align: center;
            min-height: 20px;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-8px); }
            75% { transform: translateX(8px); }
        }
        .shake {
            animation: shake 0.4s;
        }
    </style>
</head>
<body>
    <div class="login-box">
        <h2 style="text-align:center; margin-bottom:1.5rem;">🔐 身份验证 🔐</h2>
        <form onsubmit="return checkLogin(event)">
            <div class="form-group">
                <label for="username">请输入开发者提供的账号</label>
                <input type="text" id="username" required>
            </div>
            <div class="form-group">
                <label for="password">请输入开发者提供的密码</label>
                <input type="password" id="password" required>
            </div>
            <button type="submit">登 录</button>
            <p id="message"></p>
        </form>
    </div>

    <script>
        const encryptedConfig = {
            user: "Zno=",
            pass: "bmljb25pY29uaQ==",
            redirect: "aHR0cHM6Ly93d3cuMTIzODY1LmNvbS9zLzQ5NzVWdi1zUFFBZA=="
        };

        function checkLogin(e) {
            e.preventDefault();
            const messageEl = document.getElementById('message');
            
            // 获取输入值
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;

            // 验证逻辑
            const validUser = btoa(username) === encryptedConfig.user;
            const validPass = btoa(password) === encryptedConfig.pass;

            messageEl.classList.remove('shake');
            void messageEl.offsetWidth; // 触发重绘

            if (validUser && validPass) {
                messageEl.textContent = "✅ 验证通过，跳转中...";
                messageEl.style.color = "#4CAF50";
                setTimeout(() => {
                    window.location.href = atob(encryptedConfig.redirect);
                }, 1500);
            } else {
                messageEl.textContent = "❌ 账号或密码错误";
                messageEl.style.color = "#f44336";
                messageEl.classList.add('shake');
            }
        }
    </script>
</body>
</html>